package com.example.demo.zaqizabatest;

/**
 * @ClassName Music
 * @Author lys4134
 * @Date 2021/08/19 11:28:42
 * @Description Music
 * @Version 1.0
 **/
public class Music {

    private int id;//音乐编号
    private String name;//音乐名
    private String singer;//歌手名
    private String album;//专辑名
    private int duration;//时长,以秒为单位
    private String path;//音乐文件存放路径

    /*
       无参构造器
     */
    public Music(){

    }

    public Music(String name, String singer, String album, int duration, String path) {
        this.name = name;
        this.singer = singer;
        this.album = album;
        this.duration = duration;
        this.path = path;
    }

    public Music(int id, String name, String singer, String album, int duration,
                 String path) {

        this.id = id;
        this.name = name;
        this.singer = singer;
        this.album = album;
        this.duration = duration;
        this.path = path;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSinger() {
        return singer;
    }

    public void setSinger(String singer) {
        this.singer = singer;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getAlbum() {
        return album;
    }

    public void setAlbum(String album) {
        this.album = album;
    }

    @Override
    public String toString() {
        return "Music{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", singer='" + singer + '\'' +
                ", duration=" + duration +
                ", path='" + path + '\'' +
                '}';
    }
}